<%@page import="entities.SubjectMatter"%>
<script>
    <!--
    function result(){
        document.getElementById("sel1").form.submit();
    }               
    -->
</script>

<div class="home">
    <div style="color:red;"><i>${message}</i></div>
    <h3>Classes management</h3><br>

    <s:form id="form1" action="ClassesManagement">
        <s:select id="sel1" style="width: 190px;" list="#session.classes" listKey="id" listValue="number" headerKey="0" headerValue="--Please select--" name="selCls" 
                  label="Class" onchange="result()" >
        </s:select><br>

        <s:select id="sel2" style="width:190px;" list="#session.smList" listKey="id" listValue="name" headerKey="0" headerValue="--Please select--" name="selSubjMatter" 
                  label="Subject matter" onchange="result()">
        </s:select><br>

        <s:select style="width: 190px;" list="#session.personList" listKey="id" listValue="name" headerKey="0" headerValue="--Please select--" name="selPers" 
                  label="Student">
        </s:select>
    </s:form>

</div>
